Find the length of a TupleΒΆ

len(T)

Find the length of a Tuple.
#create a tuple
T = tuple("w3resource")
print(T)                               # ('w', '3', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e')

#use the len() function to known the length of tuple
print(len(T))                  # 10